package com.zlt.entity;

import com.zlt.annotation.Column;
import com.zlt.annotation.Id;
import com.zlt.annotation.ManyToOne;
import com.zlt.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table("job")
public class Job {

    @Id
    private Integer jid;

    @Column
    private String jname;

    @ManyToOne("jtid")
    private JobType jobType;

    @Column("min_salary")
    private Double minSalary;

    @Column("max_salary")
    private Double maxSalary;

    @Column
    private String description;

    @Column
    private String requirement;

    @ManyToOne("cid")
    private Company company;

    @Column("work_address")
    private String workAddress;

    @ManyToOne("uid")
    private User user;

    @Column
    private Integer state;

    @Column
    private Integer count;
}
